<?php
$redis = new Redis();
$redis->connect('192.168.1.2', 6379);
